package configmap

import (
	"kms-backend/controllers"
	"kms-backend/utils/logs"

	"github.com/dotbalo/kubeutils/kubeutils"
	"github.com/gin-gonic/gin"
)

func Detail(r *gin.Context) {
	logs.Debug(nil, "获取configmap详情")
	info := controllers.Info{}
	kubeconfig := controllers.NewInfo(r, &info, "获取configmap详情成功")
	// 使用kubeutils接口创建一个实例
	var kubeUtilser kubeutils.KubeUtilser
	instance := kubeutils.NewConfigMap(kubeconfig, nil)
	// 把实例赋值给kubeUtilser
	kubeUtilser = instance
	// 使用kubeUtilser创建
	info.Get(r, kubeUtilser)

}
